var e = require;
var t = module;
var o = exports;
var n,
    i = o,
    a =
        ((n = function (e, t) {
            return (n =
                Object.setPrototypeOf ||
                ({__proto__: []} instanceof Array &&
                    function (e, t) {
                        e.__proto__ = t;
                    }) ||
                function (e, t) {
                    for (var o in t) t.hasOwnProperty(o) && (e[o] = t[o]);
                })(e, t);
        }),
        function (e, t) {
            function o() {
                this.constructor = e;
            }
            n(e, t), (e.prototype = null === t ? Object.create(t) : ((o.prototype = t.prototype), new o()));
        });
Object.defineProperty(i, "__esModule", {value: !0});
var r = e("LoginProxy"),
    s = (function (e) {
        function t() {
            return (null !== e && e.apply(this, arguments)) || this;
        }
        return (
            a(t, e),
            (t.prototype.execute = function () {
                ad.curr_platform === window.ad.Platform.QQ
                    ? this.qqGetUserInfo()
                    : ad.curr_platform === window.ad.Platform.TOU_TIAO
                    ? this.ttGetUserInfo()
                    : ad.curr_platform === window.ad.Platform.WECHAT && this.wxGetUserInfo();
            }),
            (t.prototype.qqGetUserInfo = function () {}),
            (t.prototype.wxGetUserInfo = function () {}),
            (t.prototype.ttGetUserInfo = function () {}),
            (t.prototype.onGetUserInfo = function (e) {
                var o = game.appFacade.retrieveProxy(r.default.NAME);
                o && ((o.loginVO.userInfo = e), this.sendNotification(t.ON_GET_USER_INFO_SUCCESS));
            }),
            (t.ON_GET_USER_INFO_SUCCESS = "ON_GET_USER_INFO_SUCCESS"),
            t
        );
    })(puremvc.MacroCommand);
i.default = s;
